DoMethod(mypic ,MUIM_SetAsString,MUIA_Text_Contents,"\33c\0338\33bFAME-FTPdCFG V%s Build %ld (%s)\33n\nwritten by Sascha 'SieGeL/tRSi' Pfalz",COMPILE_VERSION,COMPILE_BUILD,COMPILE_DATE);
// Install Bubble Help texts:
set(howto, MUIA_ShortHelp, "This file will be displayed\nin every conference as a short help.\nGive here the full path to your textfile.\nDefaults to HOW_TO_UPLOAD.TXT");
set(uldir, MUIA_ShortHelp, "Enter here the path where all temporary uploads should be placed.\nA good choice is RAM: to avoid disk fragmentation.");
set(debugwin, MUIA_ShortHelp, "Enable this option to automatically open a console\nwindow on your WB screen for debugging purposes.");
set(usedns, MUIA_ShortHelp, "Enable this option to have all connected IP addresses\nresolved to their Hostnames (if possible).\nThis may take some time if the DNS is slow, so you may disable it.\nAffects all logs, too!");
set(fnamelength, MUIA_ShortHelp, "You can define here the maximum allowed filename\nlength that can be used for uploaded files.\nPlease do not use filenames > 31 characters,\nas most doors cannot handle this correctly!");
set(fbufsize, MUIA_ShortHelp, "Choose the buffer size for copying uploaded files to the FAME directories.\nYou can choose between 256kb - 1024kb.");
set(timeout, MUIA_ShortHelp, "Choose how many minutes the server should wait until a timeout occures.\nRecommended setting is 10 minutes.");
set(cancelbtn, MUIA_ShortHelp, "Cancels Preferences and exits.");
set(ipfile, MUIA_ShortHelp, "Enter here the full path and name to a file\ncontaining an ip address which should be used\nfor passive responses. Leave empty to use the\nip address of the interface the connection was\nestablished.\nYou can of course add also a hostname to that file\n(i.e. blub.dyndns.org) the FTP Server will try to\nresolve the hostname before using it.");
set(titlefile, MUIA_ShortHelp, "You may optionally enter here\nan ASCII / ANSI file which will\nbe shown to the client right\nafter connecting.");
set(portlo, MUIA_ShortHelp, "You may specify a port range to use for passive connections.\nA value of 0 means that the TCP stack will auto-choose the port numbers.\nIf you are however behind a firewall you may need to explictly specify what\nports can be used. Please specify in this case range between 1-32767 for \nport usage. Of course the minimum portrange must be lower than maxmimum\nand you should also make sure to have at least 5 ports free, else you may\nrun into trouble! Normal users should leave both values at default value of 0.");
set(porthi, MUIA_ShortHelp, "You may specify a port range to use for passive connections.\nA value of 0 means that the TCP stack will auto-choose the port numbers.\nIf you are however behind a firewall you may need to explictly specify what\nports can be used. Please specify in this case range between 1-32767 for \nport usage. Of course the minimum portrange must be lower than maxmimum\nand you should also make sure to have at least 5 ports free, else you may\nrun into trouble! Normal users should leave both values at default value of 0.");
set(weektop, MUIA_ShortHelp, "If you have aCID-tOP installed enable this option.\nThe FTP server will write special files after every upload\nso that the aCID-tOP tool can count also your FTP uploads.\nThis of course works only with my aCID-tOP tool.");
set(logdir, MUIA_ShortHelp, "Enter here a filename where the FTPServer should write the logfile.");
set(maxusers, MUIA_ShortHelp, "You can enter here a maximum count of simultaenous online users.\nIf this limit is reached no new connections are allowed.\nSet to 0 to disable MaxUser check");
SPrintf(buffer,"Saves the preferences file to\n%s",prefspath);
set(savebtn, MUIA_ShortHelp, buffer);
// Finally set all preferences data to our GUI objects:
DoMethod(titeltxt2,MUIM_SetAsString,MUIA_Text_Contents,"\033cThis Application configures the FAME FTP Server\n\n\033i\033uGreetings must go to:\033n\n\nAndreas 'Bysis' Lorenz for helping with TCP/IP problems\n\n\033i\033uBetatester:\033n\n\ndIGIMAN/tRSi, aRGON/tRSi, eXON, Elvin");
DoMethod(app, OM_ADDMEMBER, aboutwin);
set(app,MUIA_Application_Sleep,TRUE);
set(aboutwin,MUIA_Window_Open,TRUE);
get(aboutwin,MUIA_Window_Open,&status);
if(!status) fail(app,"Cannot open about window!",TRUE);
SPrintf(buffer,"Your Preferences file is outdated!\nYour prefs file is %ld bytes, but it has to be %ld bytes.\nPlease configure all options and SAVE the preferences\nto save the latest version.",fib->fib_Size,sizeof(struct FTPdConfig));